package com.synergy.stockflow.sales.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.sales.entity.Quotation;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synergy.stockflow.sales.entity.ShipmentHistory;
import com.synergy.stockflow.sales.mapper.ShipmentHistoryMapper;
import com.synergy.stockflow.sales.service.ShipmentHistoryService;
@Service
public class ShipmentHistoryServiceImpl extends ServiceImpl<ShipmentHistoryMapper, ShipmentHistory> implements ShipmentHistoryService{
    @Override
    public Page<ShipmentHistory> select(Page<ShipmentHistory> page, int current, int size,String shipmentHistoryId,String shipmentHistoryQuotationId,String shipmentHistoryOutboundWarehouse) {
        List<ShipmentHistory> shipmentHistories = baseMapper.select(page,shipmentHistoryId,shipmentHistoryQuotationId,shipmentHistoryOutboundWarehouse);
        page.setRecords(shipmentHistories);
        return page;
    }
}
